import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import chat from '../views/chat.vue'
import add  from '../views/add.vue'
import upload  from '../views/upload.vue'
import test1  from '../pages/test1.vue'
import newchat  from '../views/newchat.vue'
import demo  from '../views/demo.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/newchat',
      name: 'newchat',
      component: newchat
    },
    {
      path: '/chat',
      name: 'chat',
      component: chat
    },
    {
      path: '/add',
      name: 'add',
      component: add
    },
    {
      path: '/test1',
      name: 'test1',
      component: test1
    },
    {
      path: '/upload',
      name: 'upload',
      component: upload
    },
    {
      path: '/demo',
      name: 'demo',
      component: demo
    },
  ]
})

export default router
